/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package bookstore.action;
import com.opensymphony.xwork2.*;
import bookstore.iservice.*;
import bookstore.service.*;
import bookstore.dao.*;
import bookstore.model.*;
import static com.opensymphony.xwork2.Action.ERROR;
import static com.opensymphony.xwork2.Action.LOGIN;
import static com.opensymphony.xwork2.Action.SUCCESS;
import static java.lang.System.out;
import java.util.Map;
/**
 *
 * @author cjx
 */
public class LogoutAction extends ActionSupport
{
   public String execute()
   {
       
       ActionContext ctx = ActionContext.getContext();
       Map session = ctx.getSession();
       session.remove("bsCustomer");
       session.put("register",1);
       return SUCCESS;
   }
    
}
